home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVRECG / IRCDSK2.C < prev    next >
C/C++ Source or Header  |  1994-06-01  |  16KB  |  687 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    baseDialogId2 ;
  9. extern int    baseDialogId ;
  10. extern int    base2BtnId[9] ;
  11. extern int    selectFunc1() ;
  12. extern int    selectFunc2() ;
  13. extern int    selectFunc3() ;
  14. extern int    selectFunc4() ;
  15. extern int    selectFunc5() ;
  16. extern int    selectFunc6() ;
  17. extern int    selectFunc7() ;
  18. extern int    selectFunc8() ;
  19. extern int    selectFunc0() ;
  20. extern int    baseDialogId3 ;
  21. extern int    baseInputMesId[2] ;
  22. extern int    baseDialogId4 ;
  23. extern int    base2MesId[30] ;
  24.  
  25. #define ALIGN    4
  26. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  27.  
  28. /*    MMI_init ùpâfü[â^    */
  29.  
  30. /*    âwâbâ_    */
  31.  
  32. MMIINIT    initDataIRCDSK2 = { "MmiInit",  40, 0 } ;
  33.  
  34. /* baseDialogId2 */
  35.  
  36. static MMIPACKET d001 = {    &baseDialogId2,
  37.                             &baseDialogId,
  38.                             &MJ_DIALOGL40,
  39.                             OFFSET(DIALOGL40),
  40.                             MS_NONE
  41.                         } ;
  42. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  43.                                0,  20, 639, 479,15, 6, 8,
  44.                             MS_NONEL40,
  45.                             NULL,   0,   0
  46.                         } ;
  47.  
  48. /* base2BtnId[1] */
  49.  
  50. static MMIPACKET d002 = {    &base2BtnId[1],
  51.                             &baseDialogId2,
  52.                             &MJ_DBUTTONL40,
  53.                             OFFSET(DBUTTONL40),
  54.                             MS_NONE
  55.                         } ;
  56. static DBUTTONL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  57.                               74, 114, 373, 169,15, 4, 8,
  58.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  59.                             selectFunc1,
  60.                             0x0000
  61.                         } ;
  62.  
  63. /* base2BtnId[2] */
  64.  
  65. static MMIPACKET d003 = {    &base2BtnId[2],
  66.                             &baseDialogId2,
  67.                             &MJ_DBUTTONL40,
  68.                             OFFSET(DBUTTONL40),
  69.                             MS_NONE
  70.                         } ;
  71. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  72.                               74, 187, 205, 242,15, 4, 8,
  73.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  74.                             selectFunc2,
  75.                             0x0000
  76.                         } ;
  77.  
  78. /* base2BtnId[3] */
  79.  
  80. static MMIPACKET d004 = {    &base2BtnId[3],
  81.                             &baseDialogId2,
  82.                             &MJ_DBUTTONL40,
  83.                             OFFSET(DBUTTONL40),
  84.                             MS_NONE
  85.                         } ;
  86. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  87.                              242, 187, 373, 242,15, 4, 8,
  88.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  89.                             selectFunc3,
  90.                             0x0000
  91.                         } ;
  92.  
  93. /* base2BtnId[4] */
  94.  
  95. static MMIPACKET d005 = {    &base2BtnId[4],
  96.                             &baseDialogId2,
  97.                             &MJ_DBUTTONL40,
  98.                             OFFSET(DBUTTONL40),
  99.                             MS_NONE
  100.                         } ;
  101. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  102.                               74, 260, 373, 315,15, 4, 8,
  103.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  104.                             selectFunc4,
  105.                             0x0000
  106.                         } ;
  107.  
  108. /* base2BtnId[5] */
  109.  
  110. static MMIPACKET d006 = {    &base2BtnId[5],
  111.                             &baseDialogId2,
  112.                             &MJ_DBUTTONL40,
  113.                             OFFSET(DBUTTONL40),
  114.                             MS_NONE
  115.                         } ;
  116. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  117.                               74, 333, 205, 388,15, 4, 8,
  118.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  119.                             selectFunc5,
  120.                             0x0000
  121.                         } ;
  122.  
  123. /* base2BtnId[6] */
  124.  
  125. static MMIPACKET d007 = {    &base2BtnId[6],
  126.                             &baseDialogId2,
  127.                             &MJ_DBUTTONL40,
  128.                             OFFSET(DBUTTONL40),
  129.                             MS_NONE
  130.                         } ;
  131. static DBUTTONL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  132.                              242, 333, 373, 388,15, 4, 8,
  133.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  134.                             selectFunc6,
  135.                             0x0000
  136.                         } ;
  137.  
  138. /* base2BtnId[7] */
  139.  
  140. static MMIPACKET d008 = {    &base2BtnId[7],
  141.                             &baseDialogId2,
  142.                             &MJ_DBUTTONL40,
  143.                             OFFSET(DBUTTONL40),
  144.                             MS_NONE
  145.                         } ;
  146. static DBUTTONL40    d008d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  147.                              435, 333, 566, 388,15, 4, 8,
  148.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  149.                             selectFunc7,
  150.                             0x0000
  151.                         } ;
  152.  
  153. /* base2BtnId[8] */
  154.  
  155. static MMIPACKET d009 = {    &base2BtnId[8],
  156.                             &baseDialogId2,
  157.                             &MJ_DBUTTONL40,
  158.                             OFFSET(DBUTTONL40),
  159.                             MS_NONE
  160.                         } ;
  161. static DBUTTONL40    d009d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  162.                              435, 406, 566, 461,15, 4, 8,
  163.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  164.                             selectFunc8,
  165.                             0x0000
  166.                         } ;
  167.  
  168. /* base2BtnId[0] */
  169.  
  170. static MMIPACKET d010 = {    &base2BtnId[0],
  171.                             &baseDialogId2,
  172.                             &MJ_DBUTTONL40,
  173.                             OFFSET(DBUTTONL40),
  174.                             MS_NONE
  175.                         } ;
  176. static DBUTTONL40    d010d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  177.                               74,  41, 566,  96,15, 4, 8,
  178.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  179.                             selectFunc0,
  180.                             0x0000
  181.                         } ;
  182.  
  183. /* baseDialogId3 */
  184.  
  185. static MMIPACKET d011 = {    &baseDialogId3,
  186.                             &baseDialogId2,
  187.                             &MJ_DIALOGL40,
  188.                             OFFSET(DIALOGL40),
  189.                             MS_NONE
  190.                         } ;
  191. static DIALOGL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
  192.                               82,  70, 559,  89,15, 4, 8,
  193.                             MS_DFRAMEL40 | MS_FRAMEL40,
  194.                             NULL,   0,   0
  195.                         } ;
  196.  
  197. /* baseInputMesId[0] */
  198.  
  199. static MMIPACKET d012 = {    &baseInputMesId[0],
  200.                             &baseDialogId3,
  201.                             &MJ_MSGL40,
  202.                             OFFSET(MSGL40),
  203.                             MS_NONE
  204.                         } ;
  205. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  206.                               87,  70, 555,  89, 0,15, 8,
  207.                             MS_NONEL40,
  208.                             " ",
  209.                                1,  12,  12,
  210.                             MS_NONEL40,
  211.                                0,   0
  212.                         } ;
  213.  
  214. /* baseDialogId4 */
  215.  
  216. static MMIPACKET d013 = {    &baseDialogId4,
  217.                             &baseDialogId2,
  218.                             &MJ_DIALOGL40,
  219.                             OFFSET(DIALOGL40),
  220.                             MS_NONE
  221.                         } ;
  222. static DIALOGL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40 | MS_DSPONLYL40,
  223.                               82, 143, 365, 162,15, 4, 8,
  224.                             MS_DFRAMEL40 | MS_FRAMEL40,
  225.                             NULL,   0,   0
  226.                         } ;
  227.  
  228. /* baseInputMesId[1] */
  229.  
  230. static MMIPACKET d014 = {    &baseInputMesId[1],
  231.                             &baseDialogId4,
  232.                             &MJ_MSGL40,
  233.                             OFFSET(MSGL40),
  234.                             MS_NONE
  235.                         } ;
  236. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  237.                               84, 143, 363, 162, 0,15, 8,
  238.                             MS_NONEL40,
  239.                             " ",
  240.                                1,  12,  12,
  241.                             MS_NONEL40,
  242.                                0,   0
  243.                         } ;
  244.  
  245. /* base2MesId[0] */
  246.  
  247. static MMIPACKET d015 = {    &base2MesId[0],
  248.                             &baseDialogId2,
  249.                             &MJ_MSGL40,
  250.                             OFFSET(MSGL40),
  251.                             MS_NONE
  252.                         } ;
  253. static MSGL40    d015d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  254.                              241,  45, 400,  68, 0,15, 8,
  255.                             MS_NONEL40,
  256.                             "ô« ëµ ât â@ âC âï û╝",
  257.                                1,  12,  12,
  258.                             MS_BOLDL40,
  259.                                0,   0
  260.                         } ;
  261.  
  262. /* base2MesId[1] */
  263.  
  264. static MMIPACKET d016 = {    &base2MesId[1],
  265.                             &baseDialogId2,
  266.                             &MJ_MSGL40,
  267.                             OFFSET(MSGL40),
  268.                             MS_NONE
  269.                         } ;
  270. static MSGL40    d016d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  271.                              144, 119, 303, 142, 0,15, 8,
  272.                             MS_NONEL40,
  273.                             "î┤ëµâfâBâîâNâgâèé╠ÄwÆΦ",
  274.                                1,  12,  12,
  275.                             MS_BOLDL40,
  276.                                0,   0
  277.                         } ;
  278.  
  279. /* base2MesId[2] */
  280.  
  281. static MMIPACKET d017 = {    &base2MesId[2],
  282.                             &baseDialogId2,
  283.                             &MJ_MSGL40,
  284.                             OFFSET(MSGL40),
  285.                             MS_NONE
  286.                         } ;
  287. static MSGL40    d017d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  288.                               77, 203, 201, 226, 0,15, 8,
  289.                             MS_NONEL40,
  290.                             "î┤ëµâtâ@âCâïé╠ôoÿ^",
  291.                                1,  12,  12,
  292.                             MS_BOLDL40,
  293.                                0,   0
  294.                         } ;
  295.  
  296. /* base2MesId[3] */
  297.  
  298. static MMIPACKET d018 = {    &base2MesId[3],
  299.                             &baseDialogId2,
  300.                             &MJ_MSGL40,
  301.                             OFFSET(MSGL40),
  302.                             MS_NONE
  303.                         } ;
  304. static MSGL40    d018d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  305.                              245, 203, 369, 226, 0,15, 8,
  306.                             MS_NONEL40,
  307.                             "ârâfâIôⁿù═",
  308.                                1,  12,  12,
  309.                             MS_BOLDL40,
  310.                                0,   0
  311.                         } ;
  312.  
  313. /* base2MesId[4] */
  314.  
  315. static MMIPACKET d019 = {    &base2MesId[4],
  316.                             &baseDialogId2,
  317.                             &MJ_MSGL40,
  318.                             OFFSET(MSGL40),
  319.                             MS_NONE
  320.                         } ;
  321. static MSGL40    d019d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  322.                              144, 276, 303, 299, 0,15, 8,
  323.                             MS_NONEL40,
  324.                             "î┤ ëµ é╠ â` âF âb âN",
  325.                                1,  12,  12,
  326.                             MS_BOLDL40,
  327.                                0,   0
  328.                         } ;
  329.  
  330. /* base2MesId[5] */
  331.  
  332. static MMIPACKET d020 = {    &base2MesId[5],
  333.                             &baseDialogId2,
  334.                             &MJ_MSGL40,
  335.                             OFFSET(MSGL40),
  336.                             MS_NONE
  337.                         } ;
  338. static MSGL40    d020d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  339.                               83, 349, 205, 372, 0,15, 8,
  340.                             MS_NONEL40,
  341.                             "ô«ë